"""
AI服务主入口模块
整合所有AI服务功能，提供统一的接口
保持向后兼容性
"""

import logging

# 导入所有AI服务模块
from .base_service import BaseAIService
from .ocr_service import VolcanoOCRService
from .cloud_services import DoubaoService
from .local_services import LMStudioService
from .ollama_service import OllamaService
from .hybrid_service import HybridAIService
from .service_factory import get_ai_service, list_available_services, validate_service_config

logger = logging.getLogger(__name__)

# 为了保持向后兼容性，导出所有重要的类和函数
__all__ = [
    'BaseAIService',
    'VolcanoOCRService',
    'DoubaoService',
    'LMStudioService',
    'OllamaService',
    'HybridAIService',
    'get_ai_service',
    'list_available_services',
    'validate_service_config'
]

def get_service_status() -> dict:
    """
    获取所有AI服务的状态信息

    :return: 服务状态字典
    """
    return {
        'available_services': list_available_services(),
        'status': 'initialized',
        'version': '2.0.0'
    }
